/*
 * VerilogTextUI.java
 * 
 * last update: 14.01.2010 by Stefan Saru
 * 
 * author:	Alec(alecu@kermit.cs.pub.ro)
 *
 * Obs: N/A
 */

package ide;

import javax.swing.plaf.basic.*;
//import javax.swing.*;
import javax.swing.text.*;

/**
 * A simple UI whose sole purpose is to fetch the right View as
 * a ViewFactory implemetation
 */
class VerilogTextUI extends BasicTextAreaUI{
  
  public View create(Element elem) {
    VerilogPlainView view = new VerilogPlainView(elem, (VerilogTextArea) getComponent());
    return view;
    /* //Sun's implementation :
    JTextComponent c = getComponent();
    
    if (c instanceof JTextArea) {
      JTextArea area = (JTextArea) c;
      View v;
      if (area.getLineWrap()) {
        v = new WrappedPlainView(elem, area.getWrapStyleWord());
      } else {
        v = new PlainView(elem);
      }
      return v;
    }
    return null;
    */
  }             
}




